package cn.qianyan.service.Impl;

import cn.qianyan.beans.Device;
import cn.qianyan.dao.HardWareDao;
import cn.qianyan.service.HardWareService;
import cn.qianyan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:
 * @createDate:
 * @description:
 */
@Service
public class HardWareServiceImpl implements HardWareService {

    @Autowired
    private HardWareDao hardWareDao;

    @Override
    public int updateDev(Device device) {//硬件修改设备信息
        int i = hardWareDao.updateDev(device);
        if(i>0){
            return 0;
        }
        return 10026;
    }
}
